Optimal. Leaf size=274 \[ \frac {a^{5/2} (326 A+283 B) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}+\frac {a^3 (326 A+283 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (326 A+283 B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (170 A+157 B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (10 A+13 B) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {a B \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.46, antiderivative size = 274, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4103, 4101,
3888, 3886, 221} \begin {gather*} \frac {a^{5/2} (326 A+283 B) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{128 d}+\frac {a^3 (170 A+157 B) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{240 d \sqrt {a \sec (c+d x)+a}}+\frac {a^3 (326 A+283 B) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{192 d \sqrt {a \sec (c+d x)+a}}+\frac {a^3 (326 A+283 B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{128 d \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (10 A+13 B) \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}{40 d}+\frac {a B \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 221
Rule 3886
Rule 3888
Rule 4101
Rule 4103
Rubi steps
\begin {align*} \int \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx &=\frac {a B \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{5} \int \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {5}{2} a (2 A+B)+\frac {1}{2} a (10 A+13 B) \sec (c+d x)\right ) \, dx\\ &=\frac {a^2 (10 A+13 B) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {a B \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{20} \int \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {5}{4} a^2 (26 A+21 B)+\frac {1}{4} a^2 (170 A+157 B) \sec (c+d x)\right ) \, dx\\ &=\frac {a^3 (170 A+157 B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (10 A+13 B) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {a B \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{96} \left (a^2 (326 A+283 B)\right ) \int \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (326 A+283 B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (170 A+157 B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (10 A+13 B) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {a B \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{128} \left (a^2 (326 A+283 B)\right ) \int \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (326 A+283 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (326 A+283 B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (170 A+157 B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (10 A+13 B) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {a B \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}+\frac {1}{256} \left (a^2 (326 A+283 B)\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (326 A+283 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (326 A+283 B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (170 A+157 B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (10 A+13 B) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {a B \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}-\frac {\left (a^2 (326 A+283 B)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}\\ &=\frac {a^{5/2} (326 A+283 B) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{128 d}+\frac {a^3 (326 A+283 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{128 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (326 A+283 B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{192 d \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (170 A+157 B) \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{240 d \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (10 A+13 B) \sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{40 d}+\frac {a B \sec ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.17, size = 178, normalized size = 0.65 \begin {gather*} \frac {a^2 \sec \left (\frac {1}{2} (c+d x)\right ) \sqrt {a (1+\sec (c+d x))} \left (60 \sqrt {2} (326 A+283 B) \tanh ^{-1}\left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right )+(22030 A+24863 B+36 (650 A+781 B) \cos (c+d x)+4 (6730 A+6509 B) \cos (2 (c+d x))+6520 A \cos (3 (c+d x))+5660 B \cos (3 (c+d x))+4890 A \cos (4 (c+d x))+4245 B \cos (4 (c+d x))) \sec ^5(c+d x) \sin \left (\frac {1}{2} (c+d x)\right )\right )}{15360 d \sqrt {\sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(542\) vs.
\(2(236)=472\).
time = 7.93, size = 543, normalized size = 1.98
method | result | size |
default | \(\frac {\left (4890 A \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (-1-\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )+4890 A \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )+4245 B \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (-1-\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )+4245 B \sqrt {2}\, \left (\cos ^{5}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )+9780 A \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+8490 B \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+6520 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{3}\left (d x +c \right )\right ) \sin \left (d x +c \right )+5660 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{3}\left (d x +c \right )\right ) \sin \left (d x +c \right )+3680 A \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+4528 B \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+960 A \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+2784 B \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+768 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )-1\right ) a^{2}}{7680 d \cos \left (d x +c \right )^{2} \sin \left (d x +c \right )^{2}}\) | \(543\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 9242 vs.
\(2 (236) = 472\).
time = 1.65, size = 9242, normalized size = 33.73 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.63, size = 558, normalized size = 2.04 \begin {gather*} \left [\frac {15 \, {\left ({\left (326 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{5} + {\left (326 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{4}\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - \frac {4 \, {\left (\cos \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac {4 \, {\left (15 \, {\left (326 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{4} + 10 \, {\left (326 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + 8 \, {\left (230 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{2} + 48 \, {\left (10 \, A + 29 \, B\right )} a^{2} \cos \left (d x + c\right ) + 384 \, B a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{7680 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}}, \frac {15 \, {\left ({\left (326 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{5} + {\left (326 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{4}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right ) + \frac {2 \, {\left (15 \, {\left (326 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{4} + 10 \, {\left (326 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + 8 \, {\left (230 \, A + 283 \, B\right )} a^{2} \cos \left (d x + c\right )^{2} + 48 \, {\left (10 \, A + 29 \, B\right )} a^{2} \cos \left (d x + c\right ) + 384 \, B a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{3840 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________